Smoothing Meshes
After generating a mesh, it is sometimes necessary to modify that mesh before further processing or analysis can begin. In particular, meshes extracted from volumetric image data obtained by CT or MRI devices often contain significant amounts of noise. Removing noise while preserving the shape of a mesh, as shown in the example below, is available in both the Data Properties and Settings panel and in the Mesh Smoothing panel.
Original mesh on left and smoothed mesh on right
To make cells better shaped and the vertices more evenly distributed, you can apply smoothing by a selected number of iterations.
- Select the required mesh in the Data Properties and Settings panel.
- Select a number of iterations in the Iterations box, as shown below.

Note The more iterations selected, the smoother the result will be.
- Click the Apply button.
You can smooth meshes with a constraint to limit smoothing to selected areas of a mesh as shown below. In this case, you need to select a scalar slot as the per-vertices Laplacian relaxation parameter.
Original mesh (left) and the original mesh smoothed with constraint (right)
The scalar slot selected for smoothing with constraint should have vertex values between 0 (no relaxation) and less than 2. You should note that a value to 1 corresponds to normal smoothing. In most cases, it is best to create a scalar slot specifically for smoothing with the 3D Mesh Painter (refer to the topic 3D Mesh Painter for information about mesh painting). In most cases, it is best to create the scalar slot for smoothing with an initial value of '0'. You will then be able to paint the vertices that need smoothing with the required value.
- Select the required mesh in the Data Properties and Settings panel.
- Click Apply with Constraint in the Smooth mesh box, as shown below.

The Choose a Scalar Values Slot dialog appears.
- Choose the required scalar slot in the Choose a Scalar Values Slot dialog.

- Click OK.
Additional options for smoothing meshes are available in the Mesh Smoothing panel on the Mesh Tools tab. Right-click the required mesh in the Data Properties and Settings and then choose Mesh Smoothing in the pop-up menu to open the Mesh Smoothing panel, shown below.
Mesh Smoothing panel
| Description | |
|---|---|
| Mesh | Indicates the currently selected mesh, to which the subdivision will be applied. If required, you can select another mesh in the drop-down menu. |
| Method |
Two methods are available in Dragonfly for smoothing meshes — Laplacian and Hamming windowed smoothing.
Laplacian Smoothing… For each vertex in the mesh, a new position is chosen based on local information and the vertex is moved there. This operation produces the Laplacian of the mesh. Hamming Windowed Smoothing… Used as a windowing function named after R. W. Hamming that tapers discontinuities (see https://docs.scipy.org/doc/scipy-1.0.0/reference/generated/scipy.signal.hamming.html for more information). |
| Number of iterations | Sets the maximum number of smoothing passes. The Number of Iterations corresponds to the degree of the polynomial that is used to approximate the windowed sinc function. In many cases, ten or twenty iterations is all that is usually necessary. |
| Advanced Properties |
Opens the Advanced Parameters dialog, shown below, whenever the selected method is Hamming Windowed Smoothing.
Boundary smoothing… If selected, smoothing of vertices on the boundary of the mesh is turned on. Feature edge smoothing on… If selected, smoothing along sharp interior edges is turned on. Feature angle (degree)… Lets you specify the feature angle for sharp edge identification. Pass band factor… Lets you set the pass band factor for the windowed sinc filter. |
| Create new mesh |
Lets you choose an output target — at the input so that the original mesh is transformed, or at the output so that a new mesh is created and the original remains unmodified.
Whenever possible, you should try to retain the original mesh so that you can compare the original and subdivided versions. |
- Right-click the mesh that you want to smooth in the Data Properties and Settings panel and then choose Mesh Smoothing in the pop-up menu.
The Mesh Smoothing panel appears on the right side of the workspace on the Mesh Tools tab.
- Select a smoothing method — Laplacian Smoothing, or Hamming Windowed Smoothing, as required.
Note If you selected Hamming Windowed Smoothing, you can also set the advanced parameters.
- Select the number of iterations required.
- Check the Create new mesh option, if required.
Whenever possible, you should try to retain the original mesh so that you can compare the original and smoothed versions.
- Click the Apply button.

